<?php
/**
 * Created by PhpStorm.
 * User: LiuJiaJun
 * Date: 2019/1/11
 * Time: 9:19
 */

namespace api\storage\model;


use think\Model;

class InflowModel extends Model
{

    protected $table = 'iwh_inflow';
    protected $pk = 'uuid';

    /**
     * 添加入库流水
     *
     * @param $data
     * @return false|int
     */
    public function add($data){
        return $this->save($data);
    }

    /**
     * 批量添加
     *
     * @param $dataList
     * @return array|false
     * @throws \Exception
     */
    public function addAll($dataList){
        return $this->saveAll($dataList);
    }
}